# 编写判断函数
def pan_duan(n):
    biao_zhi = True
    for i in range(2, n):
        if n % i == 0:
            biao_zhi = False
    return biao_zhi

a = int(input("请输入左区间"))
b = int(input("请输入右区间"))

l = []
for i in range(a, b+1):
    if pan_duan(i):
        l.append(i)

# 去掉1
for a in l:
    if a == 1:
        l.remove(a)

print(l)
